import Vue from "vue";
import Vuex from "vuex";
import createPersistedState from "vuex-persistedstate";
import mutations from "./mutations";
import state from "./state";
Vue.use(Vuex);

export default new Vuex.Store({
  state,
  mutations,
  getters: {},
  actions: {},
  modules: {},
  plugins: [
    createPersistedState({
      storage: window.sessionStorage,
      reducer: (state) => {
        return {
          ...state,
        };
      },
    }),
  ],
});
